<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}style.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}photo.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.sgallery.js"></script>
</head>
<body>
{template "content","header"}
<!--main-->
<div class="main center w1024">
    <div class="w980 center photo-channel">
        <div class="photo-slide _float">
            <div class="FocusPic">
                <div id="photo-slide">
                    <div class="changeDiv">
                        {pc:content action="lists" catid="$catid" order="listorder DESC, id DESC" num="9"}
                        {loop $data $r}
                        <a href="{$r['url']}" title="{$r['title']}"><img src="{thumb($r['thumb'],435, 290)}" alt="{$r['title']}" /></a>
                        {/loop}
                        {/pc}
                    </div>
                </div>
            </div>
            <script type="text/javascript"> 
            $(function(){
                slide("#photo-slide","cur",435,324,1);
            })
            </script>
        </div>
        <div class="photo-hots">
            <div class="icon"></div>
            <h4>热点关注</h4>
            <ul class="content photo-hot picbig">
                {pc:content action="hits" catid="$catid" order="monthviews DESC" num="6"}
                {loop $data $r}
                <li>
                    <div>
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],110,70)}" /></a>
                    </div>
                    <a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],21, '')}</a></li>
                {/loop}
                {/pc}
            </ul>
        </div>
        <div class="photo-hits _float">
            <div class="_rbox">
                <table border="0" width="100%" class="h34 _title">
                    <tr>
                        <td width="25" class="_icon"><img src="{IMG_PATH}web/icon2.png" /></td>
                        <td class="_name">图片排行</td>
                    </tr>
                </table>
                <div class="_list">
                    <ul class="content digg">
                        {pc:content action="hits" catid="$catid" order="views DESC" cache="3600" num="7"}
                        {loop $data $r}
                        <li><a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a></li>
                        {/loop}
                        {/pc}
                    </ul>
                    <div class="bk6"></div>
                    <script language="javascript" src="{APP_PATH}index.php?m=poster&c=index&a=show_poster&id=3"></script>
                </div>
            </div>
        </div>
        <div class="bk20"></div>
        <div class="_line"></div>
        <div class="bk20"></div>
        {loop $array_child $cid}
        {php $chlidids = explode(',', $CATEGORYS[$cid][arrchildid])}
        {php unset($chlidids[array_search($cid, $chlidids)]);$n=1;}
        <div class="photo-cat">
            <div class="_title">
                <h5><a href="{$CATEGORYS[$cid][url]}"><strong>{$CATEGORYS[$cid][catname]}</strong></a></h5>
                <span class="_more"><a href="{$CATEGORYS[$cid][url]}"><img src="{IMG_PATH}web/more5.png" border="0" /></a>
                {loop $chlidids $chlidid}
                    {if $n!=1} | {/if} <a href="{$CATEGORYS[$chlidid][url]}">{$CATEGORYS[$chlidid][catname]}</a>
                {/loop}
                </span>
                <div class="_clear"></div>
            </div>
            <div class="content">
                <ul class="photo-list picbig">
                    {pc:content action="lists" catid="$cid" num="10" order="id DESC"}
                    {loop $data $r}
                    <li>
                        <div class="img-wrap">
                            <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],150,112)}" /></a>
                        </div>
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],28)}</a> </li>
                    {/loop}
                    {/pc}
                    <li class="_clear"></li>
                </ul>
                <div class="_clear"></div>
            </div>
        </div>
        <div class="bk20"></div>
        {/loop}
        {template "content","border-b"}
    </div>
</div>
{template "content","footer-min"}
</body>
</html>
